package behavior.Vistor;

/**
 * Created by LYJ on 2016/10/21.
 * 具体元素角色
 */
public class ConcreteElement2 extends Element {
    @Override
    public void accept(IVistor visitor) {
        visitor.visit(this);
    }

    @Override
    public void doSomething() {
        System.out.println("element2");
    }
}
